import Axios from 'axios'

const axios = Axios.create({
  baseURL: 'http://liufusong.top:8080'
})

export default ({ url, method = 'GET', params, data, headers }) => {
  return axios({
    url,
    method,
    params,
    data,
    headers
  })
}
